<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>超急抢购</title>
		<link rel="stylesheet" type="text/css" href="./css/mui.css" />
		<link rel="stylesheet" type="text/css" href="./css/mycss/index.css" />
		<link rel="stylesheet" href="./css/mycss/common.css">
		<link rel="stylesheet" href="./css/loader.css">
		<link rel="stylesheet" href="./fonts/iconfont.css">
	</head>

	<body style="background-color: white;max-width: 414px;margin: auto">
	<!--<div id="loader-wrapper">-->
		<!--<div id="loader"></div>-->
		<!--<div class="loader-section section-left"></div>-->
		<!--<div class="loader-section section-right"></div>-->
		<!--<div class="load_title"><h4>超级抢购</h4><br>正在加载 POOAI 站点<br><span>V1.0</span></div>-->
	<!--</div>-->
	<div id="warp">
		<div class="my-header">
<!-- 			<ul>
				<li><a style="font-weight: bold;color: black;">推荐</a></li>
				<li><a>超急新品</a></li>
				<li><a>家庭保健</a></li>
				<li><a>洗护用品</a></li>
				<li><a>母婴</a></li>
			</ul> -->
		</div>
		<div class="mui-content">
		</div>
		
		<!-- 图片轮播START -->
		<div class="my-slider">
			<div id="slider" class="mui-slider">
				<div class="mui-slider-group mui-slider-loop" >
					<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="#">
							<img src="./images/图层-6@2x.png">
						</a>
					</div>
					<!-- 第一张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="./images/图层-4@2x.png">
						</a>
					</div>
					<!-- 第二张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="./images/图层-5@2x.png">
						</a>
					</div>
					<!-- 第三张 -->
					<div class="mui-slider-item">
						<a href="#">
							<img src="./images/图层-6@2x.png">
						</a>
					</div>
					<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="#">
							<img src="./images/图层-4@2x.png">
						</a>
					</div>
				</div>
				<div  class="mui-slider-indicator">
					<div class="mui-indicator mui-active"></div>
					<div class="mui-indicator"></div>
					<div class="mui-indicator"></div>
				</div>
			</div>
		</div>
		<!-- 图片轮播END -->

		<!-- 区域导航START -->
		<div class="my-nav mui-row"  >
			<div class="mui-col-xs-6 my-nav-left" onclick="javascript:goUrl('template/qianggou/billList.html')">
					<span style="color:	#FF1493;font-weight: bold;">抢购榜单</span><br />
					<span style="color:#C0C0C0;font-size:xx-small;">精选商品</span>
			</div>
        	<div class="mui-col-xs-6 my-nav-right" onclick="javascript:goUrl('template/qianggou/cheapList.html')">
        		<div class="mvr-top" >
							<span style="color:	black;font-weight: bold;font-size: 14px;position: absolute;">即将上新</span><br />
							<span style="color:#C0C0C0;font-size:12px">宝宝随身<br  />洁净小卫士</span>
        		</div>
        		<div class="mvr-down" >
							<span style="color:	black;font-weight: bold;font-size: 14px;position: absolute;">即将上新</span><br />
							<span style="color:#C0C0C0;font-size:12px">宝宝随身<br  />洁净小卫士</span>

        		</div>
        	</div>
		</div>
		<!-- 区域导航END -->

		<!-- 新人专区START -->
		<div class="my-newmember">
			<div class="my-newmember-title">新人专区</div>
			<div class="my-newmember-tran">NEW MEMBERS<br />SPACIAL</div>
		</div>
		<div class="my-newmember-content">
			<img src="./images/新人专享.png">
		</div>
		<!-- 新人专区END -->

		<!-- 一元区START -->
		<div class="my-oneyuan">
			<div class="my-oneyuan-title">一元抢购</div>
			<div class="my-oneyuan-tran">ONE YUAN <br />TO SNAP UP</div>
			<!--<div class="active-info-time">-->
				<!--距结束  :<em>00</em>:<em>00</em>:<em>00</em>-->
			<!--</div>-->
		</div>
		<!--<div class="my-oneyuan-content" style="background:url(./images/400年老字品牌@2x.png)  no-repeat;background-size:100% 100%;">-->
			<!--&lt;!&ndash;<img src="./images/400年老字品牌.png">&ndash;&gt;-->
			<!--<div class="price-and-btn">-->
				<!--<div class="moc-price">-->
					<!--<span >-->
						<!--<span style="font-weight: bold;color: rgb(245,0,89)">¥</span>-->
						<!--<span style="font-size: 30px;font-weight: bold;color: rgb(245,0,89)">1&nbsp</span>-->
						<!--<span style="font-size: xx-small;text-decoration:line-through">¥12.05-->
						<!--</span>-->
				<!--</span><br  />-->
					<!--<span style="color: #D3D3D3;font-size: 12px;">291人已购买</span>-->
				<!--</div>-->
				<!--<div class="moc-btn">-->
					<!--<div onclick="javascript:goUrl('template/qianggou/detail.html')" style="background-color: rgb(245,0,89)-->
				<!--;color:white"  class="mui-btn">立即抢购</div>-->
				<!--</div>-->
			<!--</div>-->

			<div class="my-oneyuan-content" >
				<div class="time-10">
					<span class="time-10-time"  style='font-size: 20px;'>10:00</span><br />
					<span class="time-10-action" style='font-size: 12px;'>即将开始</span>
				</div>
				<div class="time-14">
						<span class="time-14-time" style="font-size: 20px;">14:00</span><br />
						<span class="time-14-action" style="font-size: 12px;">即将开始</span>
				</div>
				<div class="time-20">
						<span class="time-20-time" style="font-size: 20px;">20:00</span><br />
						<span class="time-20-action" style="font-size: 12px;">即将开始</span>
				</div>
			</div>
			<div class="goods_list">
				<div class="one-goods-list" id="one-goods-list-99">
					<div class="goods-list-img" style="width: 55%;float:left;">
						<img src="./images/750大图.png" style="width: 100%;" />
					</div>
					<div class="goods-detail-content" style="width:45%;float:left;">
						<div class="goods-detail-top" style="width: 100%;">
							<div class="goods-detail-dsc" style="padding-top:10px;line-height: 14px;font-weight: bold;" >
								<h5 style="color: #FF1493;font-weight: bold;font-size: 18px;">海飞丝洗发水</h5>
								<span style="font-size: 12px;line-height: 0">撒旦理发师两地分两地分两<br />
								(阿三的订单的)</span>
							</div>
						</div>
						<div class="goods-detail-down" style="margin-top: 20px;line-height: 12px;">
							<span style="font-weight: bold;color: rgb(245,0,89);font-size: 12px;letter-spacing:-5px;">¥</span>
							<span style="font-size: 25px;font-weight: bold;color: rgb(245,0,89); letter-spacing:-2px;">1&nbsp</span>
							<span style="font-size: xx-small;text-decoration:line-through;color: rgb(119,119,119)">¥12.05</span><br  />
							<span style="font-size: 12px;color: rgb(119,119,119)">剩余：2件</span>
						</div>
						<div style="">
							<div onclick="javascript:goUrl('template/qianggou/detail.html')" style="background-color: rgb(245,0,89)
							;color:white;margin-top:2px;float: left"  class="mui-btn">抢购提醒
							</div>
							<div class="active-info-time" style="color: #FF1493;letter-spacing:0px;">
								距结束 <em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>
								<div style="width: 20px;height: 20px;float:right;margin-left:20px;">
									<a class="mui-icon iconfont icon-cart mui-pull-right" style="color: white;"></a>
								</div>
							</div>
						</div>
					</div>
				</div>


				<div class="one-goods-list" id="one-goods-list-100">
					<div class="goods-list-img" style="width: 55%;float:left;">
						<img src="./images/750大图.png" style="width: 100%;" />
					</div>
					<div class="goods-detail-content" style="width:45%;float:left;">
						<div class="goods-detail-top" style="width: 100%;">
							<div class="goods-detail-dsc" style="padding-top:10px;line-height: 14px;font-weight: bold;" >
								<h5 style="color: #FF1493;font-weight: bold;font-size: 18px;">海飞丝洗发水</h5>
									<span style="font-size: 12px;line-height: 0">撒旦理发师两地分两地分两<br />
									(阿三的订单的)</span>
							</div>
						</div>
						<div class="goods-detail-down" style="margin-top: 20px;line-height: 12px;">
							<span style="font-weight: bold;color: rgb(245,0,89);font-size: 12px;letter-spacing:-5px;">¥</span>
							<span style="font-size: 25px;font-weight: bold;color: rgb(245,0,89); letter-spacing:-2px;">1&nbsp</span>
							<span style="font-size: xx-small;text-decoration:line-through;color: rgb(119,119,119)">¥12.05</span><br  />
							<span style="font-size: 12px;color: rgb(119,119,119)">剩余：2件</span>
						</div>
						<div style="">
							<div onclick="javascript:goUrl('template/qianggou/detail.html')" style="background-color: rgb(245,0,89)
								;color:white;margin-top:2px;float: left"  class="mui-btn">抢购提醒
							</div>
							<div class="active-info-time" style="color: #FF1493;letter-spacing:0px;">
								距结束 <em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>
								<div style="width: 20px;height: 20px;float:right;margin-left:20px;">
									<a class="mui-icon iconfont icon-cart mui-pull-right" style="color: white;"></a>
								</div>
							</div>
						</div>
					</div>
				</div>

			</div>
		</div>

	<input type="hidden"  id="promote_end_date" />
	</div>
		<!-- 一元区END -->

		<!-- 底部导航START -->
<!-- 		<nav class="mui-bar mui-bar-tab " id="nav">
            <a class="mui-tab-item mui-active" id="a1">
                <span class="mui-icon mui-icon-home"></span>
                <span class="mui-tab-label">首页</span>
            </a>
            <a class="mui-tab-item " id="a2">
                <span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>
                <span class="mui-tab-label">消息</span>
            </a>
            <a class="mui-tab-item " id="a3">
                <span class="mui-icon mui-icon-person"></span>
                <span class="mui-tab-label">个人中心</span>
            </a>
        </nav>   -->
        <!-- 底部导航END -->
	</body>
	<script src="./js/mui.min.js"></script>
	<script src="./js/myjs/url.js"></script>
	<script src="./js/myjs/commonjs/loading.js"></script>
	<script src="./js/myjs/index.js"></script>
	<script src="./js/mui.lazyload.js"></script>
	<script src="./js/mui.lazyload.img.js"></script>
	<script src="./js/myjs/commonjs/jquery.js"></script>
	<script src="./js/myjs/index.js"></script>
	<!--div动态设置-->
	<script>
		window.onload=function(){
			mui.init();
			mui('.mui-scroll-wrapper').scroll();
			var listHeight = jQuery('.goods-list-img').height();
			jQuery('.goods-detail-content').height(listHeight);

			//倒计时
			switchjAction();
			function switchjAction(){
				var date  =  new Date;
				var str =date.getFullYear()+"-";
				str +=parseInt(date.getMonth())+1+"-";
				str += date.getDate()+" ";
				if(date.getHours()>8&&date.getHours()<10) {
					jQuery('.time-10-action').html('即将开始');
					jQuery('.time-14-action').html('即将开始');
					jQuery('.time-20-action').html('即将开始');
					timeBy10();
					str +="10:00:00";
					jQuery("#promote_end_date").val(str);
					setInterval(GetRTime,1000);
				} else if(date.getHours()>=10&&date.getHours()<12){
					jQuery('.time-10-action').html('正在抢购');
					jQuery('.time-14-action').html('即将开始');
					jQuery('.time-20-action').html('即将开始');
					timeBy10();
					str +="12:00:00";
					jQuery("#promote_end_date").val(str);
					setInterval(GetRTime,1000);
				}  else if(date.getHours()>12&&date.getHours()<14){
					jQuery('.time-10-action').html('抢购结束');
					jQuery('.time-14-action').html('即将开始');
					jQuery('.time-20-action').html('即将开始');
					jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
					timeBy10();
				}  else if(date.getHours()>=14&&date.getHours()<16){
					jQuery('.time-10-action').html('抢购结束');
					jQuery('.time-14-action').html('正在抢购');
					jQuery('.time-20-action').html('即将开始');
					timeBy14();
					str +="16:00:00";
					jQuery("#promote_end_date").val(str);
					setInterval(GetRTime,1000);
//					jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
				} else if(date.getHours()>=16&&date.getHours()<20){
					jQuery('.time-10-action').html('抢购结束');
					jQuery('.time-14-action').html('抢购结束');
					jQuery('.time-20-action').html('即将开始');
					timeBy14();
					jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
				}
				else if(date.getHours()>=20&&date.getHours()<22){
					jQuery('.time-20-action').html('正在抢购');
					timeBy20();
					str +="22:00:00";
					jQuery("#promote_end_date").val(str);
					setInterval(GetRTime,1000);
				} else  {
					jQuery('.time-20-action').html('抢购结束');
					timeBy20();
					jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
				}
			}
//			var width = window.screen.width;
//			if(width>414){
//				width = 414;
//			}
//			var height =  width*0.59;
//			document.getElementsByClassName('my-oneyuan-content')[0].style.width = width+'px';
//			document.getElementsByClassName('my-oneyuan-content')[0].style.height =  height+'px';
//			document.getElementsByClassName('price-and-btn')[0].style.marginTop = height*0.4+'px';

			// 倒计时
			function GetRTime(){
				var promote_end_date = document.querySelector("#promote_end_date").value;
				var EndTime= new Date(promote_end_date);
				var NowTime = new Date();
				var t =EndTime.getTime() - NowTime.getTime();
				var d=0;
				var h=0;
				var m=0;
				var s=0;
				if(t>=0){
					d=Math.floor(t/1000/60/60/24);
					h=Math.floor(t/1000/60/60%24);
					m=Math.floor(t/1000/60%60);
					s=Math.floor(t/1000%60);
				}
				h  = fix(h, 2);
				m  = fix(m, 2);
				s  = fix(s, 2);

				jQuery(".active-info-time").html(
						'距结束 <em style="color: white;border-radius: 2px;padding: 1px">'+h
						+'</em>:<em style="color: white;border-radius: 2px;padding: 1px">'+m
						+'</em>:<em style="color: white;border-radius: 2px;padding: 1px">'+s+'</em>'+'<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><a class="mui-icon iconfont icon-cart mui-pull-right" style="color: red;"></a>'
			)
			}
			// 格式化两位数
			function fix(num, length) {
				return ('' + num).length < length ? ((new Array(length + 1)).join('0') + num).slice(-length) : '' + num;
			}

			//点击处理事件
			jQuery('.time-10').click(function(e){
				timeBy10();

			})
			jQuery('.time-14').click(function(e){
				timeBy14();
			})
			jQuery('.time-20').click(function(e){
				timeBy20();
			})
//			loading(3000);


			//十点抢购
			function timeBy10(){
				//点击处理事件
				jQuery('.time-10').css('padding','9px');
				jQuery('.time-14').css('padding','10px');
				jQuery('.time-20').css('padding','10px');
				jQuery('.time-10-time').css('font-size','25px');
				jQuery('.time-10-time').css('color', '#FF1493');
				jQuery('.time-10-action').css('color', '#FF1493');

				jQuery('.time-14-time').css('font-size','20px');
				jQuery('.time-14-time').css('color', 'black');
				jQuery('.time-14-action').css('color', 'black');
				jQuery('.time-20-time').css('font-size','20px');
				jQuery('.time-20-time').css('color', 'black');
				jQuery('.time-20-action').css('color', 'black');

				jQuery.ajax({

					type: 'GET',

					url: 'json/timeGoods1.json' ,

					data: {
						step:'reduce',

					},
					success: function (message){
						jQuery(".mui-btn").attr("onclick","");
						jQuery(".goods_list").empty();
						var data = eval('('+message+')');
						if(data[0]){
							for(var i in data[1]){
								var timeContent = '';
								if(data[1][i].isAction=='1'){
									var timeContent = '距开始';
								}else{
									var timeContent = '距结束';
								}
								jQuery(".goods_list").append('<div class="one-goods-list"id="one-goods-list-"+data[1][i].goods_id+""><div class="goods-list-img"style="width: 55%;float:left;"><img src="'+data[1][i].imageUrl+'"style="width: 100%;"/></div><div class="goods-detail-content"style="width:45%;float:left;"><div class="goods-detail-top"style="width: 100%;"><div class="goods-detail-dsc"style="padding-top:10px;line-height: 14px;font-weight: bold;"><h5 style="color: #FF1493;font-weight: bold;font-size: 18px;">海飞丝洗发水</h5><span style="font-size: 12px;line-height: 0">撒旦理发师两地分两地分两<br/>(阿三的订单的)</span></div></div><div class="goods-detail-down"style="margin-top: 20px;line-height: 12px;"><span style="font-weight: bold;color: rgb(245,0,89);font-size: 12px;letter-spacing:0px;">¥</span><span style="font-size: 25px;font-weight: bold;color: rgb(245,0,89); letter-spacing:0px;">1&nbsp</span><span style="font-size: xx-small;text-decoration:line-through;color: rgb(119,119,119)">¥12.05</span><br/><span style="font-size: 12px;color: rgb(119,119,119)">剩余：2件</span></div><div style=""><div onclick="javascript:goUrl('+"'"+data[1][i].button.url+"'"+')" style="background-color: rgb(245,0,89);color:white;margin-top:2px;float: left"class="mui-btn">'+data[1][i].button.text+'</div><div class="active-info-time"style="color: #FF1493;letter-spacing:0px;">'+timeContent+'<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em><div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png"style="width: 100%"/></div></div></div></div></div>');
							}
						}

						var date  =  new Date;
						var str =date.getFullYear()+"-";
						str +=parseInt(date.getMonth())+1+"-";
						str += date.getDate()+" ";
						if(data[1][0].isAction=='1'){
							str +="12:00:00";
							jQuery("#promote_end_date").val(str);
							setInterval(GetRTime,1000);
						}else if(data[1][0].isAction=='0') {
							str +="10:00:00";
							jQuery("#promote_end_date").val(str);
							setInterval(GetRTime,1000);
						}else{
							jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
						}
						console.log(str);

//						console.log(jQuery("#promote_end_date").val());

					},

					dataType: JSON

				});
			}

//20点抢购
			function timeBy20(){
				//点击处理事件
				jQuery('.time-20').css('padding','9px');
				jQuery('.time-14').css('padding','10px');
				jQuery('.time-10').css('padding','10px');
				jQuery('.time-20-time').css('font-size','25px');
				jQuery('.time-20-time').css('color', '#FF1493');
				jQuery('.time-20-action').css('color', '#FF1493');

				jQuery('.time-14-time').css('font-size','20px');
				jQuery('.time-14-time').css('color', 'black');
				jQuery('.time-14-action').css('color', 'black');
				jQuery('.time-10-time').css('font-size','20px');
				jQuery('.time-10-time').css('color', 'black');
				jQuery('.time-10-action').css('color', 'black');

				jQuery.ajax({

					type: 'GET',

					url: 'json/timeGoods2.json' ,

					data: {
						step:'reduce',

					},
					success: function (message){
						jQuery(".mui-btn").attr("onclick","");
						jQuery(".goods_list").empty();
						var data = eval('('+message+')');
						if(data[0]){
							for(var i in data[1]){
								var timeContent = '';
								if(data[1][i].isAction=='1'){
									var timeContent = '距开始';
								}else{
									var timeContent = '距结束';
								}
								jQuery(".goods_list").append('<div class="one-goods-list"id="one-goods-list-"+data[1][i].goods_id+""><div class="goods-list-img"style="width: 55%;float:left;"><img src="'+data[1][i].imageUrl+'"style="width: 100%;"/></div><div class="goods-detail-content"style="width:45%;float:left;"><div class="goods-detail-top"style="width: 100%;"><div class="goods-detail-dsc"style="padding-top:10px;line-height: 14px;font-weight: bold;"><h5 style="color: #FF1493;font-weight: bold;font-size: 18px;">海飞丝洗发水</h5><span style="font-size: 12px;line-height: 0">撒旦理发师两地分两地分两<br/>(阿三的订单的)</span></div></div><div class="goods-detail-down"style="margin-top: 20px;line-height: 12px;"><span style="font-weight: bold;color: rgb(245,0,89);font-size: 12px;letter-spacing:0px;">¥</span><span style="font-size: 25px;font-weight: bold;color: rgb(245,0,89); letter-spacing:0px;">1&nbsp</span><span style="font-size: xx-small;text-decoration:line-through;color: rgb(119,119,119)">¥12.05</span><br/><span style="font-size: 12px;color: rgb(119,119,119)">剩余：2件</span></div><div style=""><div onclick="javascript:goUrl('+"'"+data[1][i].button.url+"'"+')" style="background-color: rgb(245,0,89);color:white;margin-top:2px;float: left"class="mui-btn">'+data[1][i].button.text+'</div><div class="active-info-time"style="color: #FF1493;letter-spacing:0px;">'+timeContent+'<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em><div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png"style="width: 100%"/></div></div></div></div></div>');
							}
						}

						var date  =  new Date;
						var str =date.getFullYear()+"-";
						str +=parseInt(date.getMonth())+1+"-";
						str += date.getDate()+" ";
						if(data[1][0].isAction=='1'){
							str +="22:00:00";
							jQuery("#promote_end_date").val(str);
							setInterval(GetRTime,1000);
						}else if(data[1][0].isAction=='0') {
							str +="20:00:00";
							jQuery("#promote_end_date").val(str);
							setInterval(GetRTime,1000);
						}else{
							jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
						}
//						console.log(jQuery("#promote_end_date").val());

					},

					dataType: JSON

				});
			}

//14点抢购
			function timeBy14(){
				//点击处理事件
				jQuery('.time-14').css('padding','9px');
				jQuery('.time-10').css('padding','10px');
				jQuery('.time-20').css('padding','10px');
				jQuery('.time-14-time').css('font-size','25px');
				jQuery('.time-14-time').css('color', '#FF1493');
				jQuery('.time-14-action').css('color', '#FF1493');

				jQuery('.time-20-time').css('font-size','20px');
				jQuery('.time-20-time').css('color', 'black');
				jQuery('.time-20-action').css('color', 'black');
				jQuery('.time-10-time').css('font-size','20px');
				jQuery('.time-10-time').css('color', 'black');
				jQuery('.time-10-action').css('color', 'black');

				jQuery.ajax({

					type: 'GET',

					url: 'json/timeGoods.json' ,

					data: {
						step:'reduce',

					},
					success: function (message){
						jQuery(".mui-btn").attr("onclick","");
						jQuery(".goods_list").empty();
						var data = eval('('+message+')');
						if(data[0]){
							for(var i in data[1]){
								var timeContent = '';
								if(data[1][i].isAction=='1'){
									var timeContent = '距开始';
								}else{
									var timeContent = '距结束';
								}
								jQuery(".goods_list").append('<div class="one-goods-list"id="one-goods-list-"+data[1][i].goods_id+""><div class="goods-list-img"style="width: 55%;float:left;"><img src="'+data[1][i].imageUrl+'"style="width: 100%;"/></div><div class="goods-detail-content"style="width:45%;float:left;"><div class="goods-detail-top"style="width: 100%;"><div class="goods-detail-dsc"style="padding-top:10px;line-height: 14px;font-weight: bold;"><h5 style="color: #FF1493;font-weight: bold;font-size: 18px;">海飞丝洗发水</h5><span style="font-size: 12px;line-height: 0">撒旦理发师两地分两地分两<br/>(阿三的订单的)</span></div></div><div class="goods-detail-down"style="margin-top: 20px;line-height: 12px;"><span style="font-weight: bold;color: rgb(245,0,89);font-size: 12px;letter-spacing:0px;">¥</span><span style="font-size: 25px;font-weight: bold;color: rgb(245,0,89); letter-spacing:0px;">1&nbsp</span><span style="font-size: xx-small;text-decoration:line-through;color: rgb(119,119,119)">¥12.05</span><br/><span style="font-size: 12px;color: rgb(119,119,119)">剩余：2件</span></div><div style=""><div onclick="javascript:goUrl('+"'"+data[1][i].button.url+"'"+')" style="background-color: rgb(245,0,89);color:white;margin-top:2px;float: left"class="mui-btn">'+data[1][i].button.text+'</div><div class="active-info-time"style="color: #FF1493;letter-spacing:0px;">'+timeContent+'<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em>:<em style="color: white;border-radius: 2px;padding: 1px">00</em><div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png"style="width: 100%"/></div></div></div></div></div>');
							}
						}

						var date  =  new Date;
						var str =date.getFullYear()+"-";
						str +=parseInt(date.getMonth())+1+"-";
						str += date.getDate()+" ";
						if(data[1][0].isAction=='1'){
							str +="16:00:00";
							jQuery("#promote_end_date").val(str);
							setInterval(GetRTime,1000);
						}else if(data[1][0].isAction=='0') {
							str +="14:00:00";
							jQuery("#promote_end_date").val(str);
							setInterval(GetRTime,1000);
						}else{
							jQuery(".active-info-time").html('抢购结束<div style="width: 20px;height: 20px;float:right;margin-left:20px;"><img src="./images/红色钩.png" style="width: 100%"/></div>');
						}

					},

					dataType: JSON

				});
			}
		}
	</script>
</html>